<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
    <script type="text/javascript" src="${path}/gui/js/tab.js"></script>
</head>
<body>
<div class="easyui-panel" title="基本信息管理" style="width:94%;hight:80%">
    <div style="padding:10px 60px 20px 60px">
        <form id="ff_me_info_edit" class="easyui-form" action="${path}/sys/meInfo" method="post" data-options="novalidate:true">
            <table cellpadding="5">
                <tr>
                    <td>登录名:</td>
                    <td>${sysAccount.loginname}</td>

                    <td>&nbsp;</td>
                    <td>&nbsp;</td>

                    <td>手机:</td>
                    <td>${sysAccount.phonenumber}</td>

                </tr>
                <tr>
                    <td>邮箱:</td>
                    <td>${sysAccount.email}</td>

                    <td>&nbsp;</td>
                    <td>&nbsp;</td>

                    <td>性别:</td>
                    <td>
                        <select name="sex" id="sex_" disabled="disabled">
                            <#list sexEnumMap?keys as k>
                                <#if k == "${sysAccount.sex}">
                                    <option value="${k}" selected="selected">--${sexEnumMap[k]}--</option>
                                </#if>
                                <#if k != "${sysAccount.sex}">
                                    <option value="${k}">--${sexEnumMap[k]}--</option>
                                </#if>
                            </#list>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>昵称:</td>
                    <td>
                        <input class="easyui-textbox" value="${(sysAccount.kawyiname)!}" type="text" name="kawyiname"  />
                        <input value="${sysAccount.id!}" type="text" name="id" style="display:none" />
                    </td>

                    <td>&nbsp;</td>
                    <td>&nbsp;</td>

                    <td>年龄:</td>
                    <td><input class="easyui-numberbox" type="text" value="${(sysAccountDetail.age)!}" name="age"  data-options="precision:0" /></td>
                </tr>

                <tr>
                    <td>兴趣:</td>
                    <td><input class="easyui-textbox" type="text" name="mlike" value="${(sysAccountDetail.mlike)!}"  /></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>

                    <td>所在城市:</td>
                    <td><input class="easyui-textbox" type="text" name="city" value="${(sysAccountDetail.city)!}" /></td>
                </tr>
                <tr>
                    <td>skype:</td>
                    <td><input class="easyui-textbox" type="text" name="skype" value="${(sysAccountDetail.skype)!}" /></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>

                    <td>微信:</td>
                    <td><input class="easyui-textbox" type="text" name="weixin" value="${(sysAccountDetail.weixin)!}"/></td>
                </tr>

                <tr>
                    <td>联系地址:</td>
                    <td>
                        <input class="easyui-textbox" name="address" value="${(sysAccountDetail.address)!}" style="height:50px;width: 220px" />
                    </td>

                    <td></td>
                    <td></td>

                    <td></td>
                    <td></td>
                </tr>
            </table>
        </form>
    </div>
    <div style="text-align:right;padding:10px;padding-bottom: 10px;">
        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-submit" style="width:90px" onclick="submitForm()">修改</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-otherclose" style="width:90px" onclick="closeCurr()">关闭</a>
    </div>
</div>

<script type="text/javascript">
    function submitForm(){
        $('#ff_me_info_edit').form('submit',{
            onSubmit:function(){
                return $(this).form('enableValidation').form('validate');
            },
            success : function(data) {
                var obj_json = $.parseJSON(data);
                if(obj_json.mta==1){
                    $.messager.alert('提示',obj_json.msg,'info');
                    var currTab = $('#tt').tabs('getSelected');
                    var currIndex = currTab.panel('options').index;
                    $('#tt').tabs('close',currIndex);
                }else{
                    $.messager.alert('提示',obj_json.msg,'error');
                }
            }
        });
    }
</script>
</body>
</html>